// app.js
module.exports = app => {
    app.sessionStore = {
      // support promise / async
      async get (key) {
         return await app.redis.get(key);
      },
      async set (key, value, maxAge) {
        await app.redis.set(key, value);
      },
      async destroy (key) {
        return await app.redis.del (key);
      },
    };
  };